package com.ruoyi.ring.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * app消息对象 az_ring_app_notice
 *
 * @author liuwp
 * @date 2025-11-11
 */
@Data
public class RingAppNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Integer noticeId;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String noticeTitle;

    /** 消息类型 生理期消息：1 */
    @Excel(name = "消息类型 生理期消息：1")
    private String noticeType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String noticeContent;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /** 状态（已读1  未读0） */
    @Excel(name = "状态", readConverterExp = "已=读1,未=读0")
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("noticeId", getNoticeId())
                .append("noticeTitle", getNoticeTitle())
                .append("noticeType", getNoticeType())
                .append("noticeContent", getNoticeContent())
                .append("userId", getUserId())
                .append("recordDate", getRecordDate())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
